<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{page_title}</title>
<link rel="stylesheet" href="s/style.css" type="text/css" media="screen" />
<script type="text/javascript" src="j/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="j/func.js"></script>
</head>
<body>
<div align="center">
    <div id="wrap">
      <div id="header">
        <div id="pagenav">
          <ul>
            <li class="page_item"><a href="{website_url}about.html" title="关于">关于</a></li>
            <li class="page_item"><a href="{website_url}rss.php" title="RSS订阅" target="_blank">RSS订阅</a></li>
          </ul>
        </div>
        <div id="title">
            <h1><a href="{website_url}">{web_title}</a></h1>
            <div class="description">{description}</div>
        </div>
      </div><!-- end of header -->

      <div id="main">
        <div id="sidebar">
          <ul>
            <script type="text/javascript">
              $(document).ready(function(){
                $("#search_from").submit(function(){
                  var search_word = $.trim($("#search_word").val());

                  var return_re = true;
                  if (search_word.length == 0 || search_word == "输入关键词"){
                    $("#prompt_search_word").text("请输入搜索关键词");
                    return_re = false;
                  }else if (search_word.length > 20){
                    $("#prompt_search_word").text("最多不得超过20个字符");
                    return_re = false;
                  }

                  return return_re;
                });

                $("#search_word").focus(function(){
                  var search_word = $.trim($("#search_word").val());
                  if (search_word == "输入关键词"){
                    $("#search_word").val("");
                  }
                });

                $("#search_word").blur(function(){
                  var search_word = $.trim($("#search_word").val());
                  if (search_word == ""){
                    $("#search_word").val("输入关键词");
                  }
                });
              });
            </script>
            <li class="widget">
              <form id="search_from" method="GET" action="index.php">
                <input type="hidden" name="search" value="search" />
                <input type="text" name="search_word" id="search_word" size="15" value="输入关键词" />
                <input type="submit" id="search_button" value="搜索" />
                <br/>
                <small> <span class="prompt" id="prompt_search_word"></span></small>
              </form>
            </li>
            <li class="widget">
              <h2>分类目录</h2>
              <ul>
                {category_str}
              </ul>
            </li>
            <li class="widget">
              <h2>标签</h2>
			        <!-- 待添加：根据包含量确定标签字体大小 -->
              <div>
                {tag_str}
              </div>
            </li>
            <li class="widget">
              <h2>页面</h2>
              <ul>
                <li class="page_item page-item-2"><a href="{website_url}about.html" title="关于">关于</a></li>
                <li class="page_item page-item-15"><a href="{website_url}rss.php" title="Another Page" target="_blank">RSS订阅</a></li>
              </ul>
            </li>
          </ul>
        </div><!-- end of sidebar -->

        {main_content}

        <div class="clear"></div>
      </div><!-- end of main -->

      <div id="footer">
        看这里：本博客内容如不标明出处均为原创。
        <br/>
        Copyright &copy; 2010 Ricky. guoyu1268@qq.com 
        <script src="http://s13.cnzz.com/stat.php?id=2475227&web_id=2475227" language="JavaScript"></script>
	  </div><!-- end of footer-->
    </div><!-- end of wrap -->
</div><!-- end of center -->
</body>
</html>